#include "config.h"

#define RING_BUFF_SIZE 64
typedef struct RING_STRUCT
{
	u8 Buff[RING_BUFF_SIZE];
	u8 front;
	u8 rear;
	u8 data;
	u8 index;
	u8 maxsize;
}Ring_Struct_TypeDef,*pRing_Struct_TypeDef;


void Great_Ring(pRing_Struct_TypeDef pRing);
void Ring_Reset(pRing_Struct_TypeDef pRing);
u8 Ring_Full(pRing_Struct_TypeDef pRing);
u8 Ring_Empty(pRing_Struct_TypeDef pRing);
u8 Ring_Enter_Data(pRing_Struct_TypeDef pRing,const u8 dat);
u8 Ring_Out_Data(pRing_Struct_TypeDef pRing, unsigned char *val);

